// store.js
import Vue from 'vue'
import Vuex from 'vuex'
import amapFile from '../libs/amap-wx.130.js'
Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		// 状态数据定义
		myAmapFun: new amapFile.AMapWX({
			key: 'a5f2cadf153a697a05b88d852d48f9a7'
		}),
		scope_img: uni.getStorageSync('ShopInfo').qiniu_bucket, //  上传空间
		uploadUrl: "http://upload-z2.qiniup.com", //上传链接
		imgUrl: uni.getStorageSync('ShopInfo').domain_img, //图片链接
		shareUrl: '', // 邀请码连接
		downloadUrl: '', //下载链接
		total_money: '', //提现总金额
		itemShopInfo: null, //修改数据详情
	},
	mutations: {
		// 状态更改函数定义
	},
	actions: {
		// 异步操作和逻辑封装
	},
	getters: {
		// 计算派生状态
	}
})

export default store